const express = require('express')
const bodyParser = require('body-parser')
const session = require('express-session')

const app =express()

app.use(session({
    secret:'secret',
    resave:true,
    saveUninitialized:false,
    cookies:{
        maxAge:1000*60*8
    }
}))


app.use(bodyParser.urlencoded({ extended: false }))


const api = require('./api')
api(app)


app.listen(8888)
    